import { getRequest, putRequest } from '@/util/httpServer';

// 采购退货单列表
export const getOutPurchaseOrders = (data = {}) => getRequest('/api/api/purchase-orders/returnOrders', data, true);

// 采购退货单列表-设置状态可用/不可用
export const stockInOrdersWebDisabled = (data = {}) => {
  const { id, deleted } = data;
  return putRequest(`/api/api/purchase-orders/webDisabled/${id}?deleted=${deleted}`);
};
